<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		
		<!-- head_title //-->

		<!-- head_description //-->
		<!-- head_keywords //-->
		<!-- head_author //-->
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		
		<link rel="icon" type="image/png" href="/img/ico/favicon.png">
		
		<!-- head_css //-->
		<link href="/css/style.css" rel="stylesheet" type="text/css" />
	</head>
	
	<body>
		<?php
		$xml = simplexml_load_file('./config/showcase.xml');
		$xml = json_decode(json_encode($xml), TRUE);
		?>
		
		<h1><? echo $xml["env"]["title"].'@'.gethostname(); ?></h1>
									
		<h2>projects</h2>
		
		<table>
			<thead>
				<tr>
					<th>Name</th><th>Description</th><th>Local link</th><th>Production link</th>
				</tr>
			</tdead>
			<tbody>
			<?php 
				foreach ($xml["projects"]["project"] as  $project) {		
			?>
				<tr>
					<td><?=$project["name"] ?></td>
					<td><?=$project["desc"] ?></td>
					<td>
					<?php 
						if ($project["url_dev"] == ' - ') {
							echo $project["url_dev"];
						} else {
					?>
						<a href="http://<?=$project["url_dev"] ?>" title="<?=$project["url_dev"] ?>" target="_blank">View</a>
					<?php 
						}//end-if
					?>
					</td>
					<td>
					<?php 
						if ($project["url_pro"] == ' - ') {
							echo $project["url_pro"];
						} else {
					?>
						<a href="http://<?=$project["url_pro"] ?>" title="<?=$project["url_pro"] ?>" target="_blank">View</a>
					<?php 
						}//end-if
					?>
					</td>
				</tr>
			<?php 
				}//end-foreach
			?>
			</tbody>
		</table>
		
		<h2>Utils</h2>
		
		<table>
			<thead>
				<tr>
					<th>Name</th><th>Description</th><th>Link</th>
				</tr>
			</tdead>
			<tbody>
			<?php
				foreach ($xml["utils"]["util"] as $util) {		
			?>
				<tr>
					<td><?=$util["name"] ?></td>
					<td><?=$util["desc"] ?></td>
					<td>
						<a href="http://<?=$util["url"] ?>" title="<?=$util["url"] ?>" target="_blank">View</a>
					</td>
				</tr>
			<?php 
				}//end-foreach
			?>
			</tbody>
		</table>

		<h3>admin: <?=$xml["env"]["email"] ?></h3>
		<!-- body_js //-->
	</body>
</html>
